From: Adel Gadllah Date: Thu, 24 Feb 2011 10:25:29 +0000 (+0100) Subject: XDND: Always update the timestamp on motion X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8870 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8d78c3a2abe16352db50f04cc22d6f0e75128703;p=gnome-shell.git XDND: Always update the timestamp on motion The xdnd timestamp gets updated on every xdnd-position event, so while waiting for the window timeout to fire we need to make sure we update the timestamp when getting on motion to activate the window with the correct timestamp. --- diff --git a/js/ui/overview.js b/js/ui/overview.js index fd2266b05..fbe8c3e15 100644 --- a/js/ui/overview.js +++ b/js/ui/overview.js @@ -231,6 +231,8 @@ Overview.prototype = { dragEvent.targetActor._delegate && dragEvent.targetActor._delegate.metaWindow; + this._windowSwitchTimestamp = global.get_current_time(); + if (targetIsWindow && dragEvent.targetActor._delegate.metaWindow == this._lastHoveredWindow) return DND.DragMotionResult.CONTINUE; @@ -245,7 +247,6 @@ Overview.prototype = { if (targetIsWindow) { this._lastHoveredWindow = dragEvent.targetActor._delegate.metaWindow; - this._windowSwitchTimestamp = global.get_current_time(); this._windowSwitchTimeoutId = Mainloop.timeout_add(DND_WINDOW_SWITCH_TIMEOUT, Lang.bind(this, function() { this._needsFakePointerEvent = true;